package com.dengxingxing.ssm.service.impl;

import com.dengxingxing.ssm.entity.Book;
import com.dengxingxing.ssm.mapper.BookMapper;
import com.dengxingxing.ssm.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author DELL
 */
@Service
public class BookServiceImpl implements BookService {
    @Autowired
    private BookMapper bookMapper;
    @Override
    public List<Book> findAllBooks() {
        return bookMapper.findAll();
    }
}
